<template>
    <section class="home-container" @click="getUser">Home</section>
</template>

<script lang="ts">
import { Component, Vue } from 'vue-property-decorator';

@Component
export default class Home extends Vue {

	mounted() {
		this.$store.commit('SET_USER', 'asdfasdff,asdf')
	}

	private getUser() {
		console.log(this.$store.state)
		this.$router.push({
			path: '/login'
		})
	}
}
</script>

<style lang="less" scoped>
.home-container {
    padding: 30px;
}
</style>
